<?php
global $references;
$references = array(

    "type.basic.Tag" => array(
        "class" => "Pageley_Domain_BasicType",
        "constructor" => array(
            "namespace" => "#{basicNamespace}",
            "name" => "Tag"
        ),
        "properties" => array(
            "attributes" => array(
                "name" => "#{attribute.unique(attribute.name)}"
            )
        )
    ),

	"type.basic.Image" => array(
		"class" => "Pageley_Domain_BasicType",
		"constructor" => array(
			"namespace" => "#{basicNamespace}",
			"name" => "Image"
		),
		"properties" => array(
			"attributes" => array(
                "name" => "#{attribute.unique(attribute.name)}",
		        "file" => "#{attribute.required(attribute.imageFile)}",
		        "tags" => "#{attribute.manyToMany(attribute.tag)}"
			)
		)
	),
    
    "type.basic.Slideshow" => array(
        "class" => "Pageley_Domain_BasicType",
        "constructor" => array(
            "namespace" => "#{basicNamespace}",
            "name" => "Slideshow"
        ),
        "properties" => array(
            "attributes" => array(
                "title" => "#{attribute.unique(attribute.name)}",
                "images" => "#{attribute.manyToMany(attribute.image)}",
                "tags" => "#{attribute.manyToMany(attribute.tag)}"
            )
        )
    ),
	
	"type.basic.Page" => array(
	    "class" => "Pageley_Domain_BasicType",
	    "constructor" => array(
	        "namespace" => "#{basicNamespace}",
	        "name" => "Page"
	    ),
	    "properties" => array(
	        "attributes" => array(
	            "title" => "#{attribute.unique(attribute.name)}",
	            "code" => "#{attribute.unique(attribute.code)}",
	            "summary" => "#{attribute.text}",
	            "content" => "#{attribute.required(attribute.richText)}",
                "tags" => "#{attribute.manyToMany(attribute.tag)}"
	        )
	    )
	)
);